﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdminLogin.aspx.cs" Inherits="LDSP.UI.AdminLogin" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>法律法规服务平台登录</title>
    <style type="text/css">
        body
        {
            margin-left: 0px;
            margin-top: 0px;
            margin-right: 0px;
            margin-bottom: 0px;
            background-color: #00244c;
            text-align: center;
        }
        #container
        {
            width: 300px;
            margin-top: 200px;
            margin-left: auto;
            margin-right: auto;
        }
        #title
        {
            color: White;
            font-family: Arial;
            font-size: 26px;
            padding-bottom: 10px;
        }
        #detailForm
        {
            color: White;
            font-family: Arial;
            font-size: 12px;
            text-align: left;
        }
        #bottom
        {
            margin-top: 10px;
        }
        .detailTitle
        {
            text-align: right;
            padding-right: 5px;
            width: 100px;
        }
        .inputTxt
        {
            width: 100px;
        }
    </style>
    <script type="text/javascript" src="../Scripts/jquery-1.4.1.js"></script>
    <script type="text/javascript" src="../Scripts/jqex.js"></script>
    <script type="text/javascript" src="../Scripts/Common.js"></script>
    <script type="text/javascript">

        $(function () {
            //防框架内
            if (self.location != top.location) {
                top.location = self.location;
            }

            //设置文本框变色效果
            $("input:text").focus(function () { this.style.backgroundColor = '#fa0' }).blur(function () { this.style.backgroundColor = '#fff' })
            $("input:password").focus(function () { this.style.backgroundColor = '#fa0' }).blur(function () { this.style.backgroundColor = '#fff' })
            //客户端验证
            $("#btn_ok").click(function () {
                return clientValidate();
            })
        })

        function clientValidate() {
            var account =
            {
                name: $.trim($("#txt_name").val()),
                pwd: $("#txt_pwd").val(),
                vc: $.trim($("#txt_validate").val())
            }
            if (account.name == "") {
                alert("名称不能为空！");
                $("#txt_name").focus();
                return false;
            }
            if (account.pwd == "") {
                alert("密码不能为空！");
                $("#txt_pwd").focus();
                return false;
            }
            if (account.vc == "") {
                alert("验证码不能为空！");
                $("#txt_validate").focus();
                return false;
            }
            return true;
        }
        function changeImg() {
            $("#img_validate")[0].src = "Image.aspx?" + Math.random();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="container">
        <div id="title">
            法律法规服务平台登录
        </div>
        <div id="detailForm">
            <table>
                <tr>
                    <td class="detailTitle">
                        用户名：
                    </td>
                    <td>
                        <asp:TextBox ID="txt_name" runat="server" CssClass="inputTxt"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="detailTitle">
                        密码：
                    </td>
                    <td>
                        <asp:TextBox ID="txt_pwd" runat="server" CssClass="inputTxt" TextMode="Password"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="detailTitle">
                        验证码：
                    </td>
                    <td>
                        <asp:TextBox ID="txt_validate" runat="server" CssClass="inputTxt"></asp:TextBox>&nbsp;&nbsp;&nbsp;<img
                            src="Image.aspx" id="img_validate" alt="验证码" onclick="changeImg()" />
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:CheckBox ID="chkRememberMe" Text="记住我" runat="server" />
                    </td>
                </tr>
            </table>
        </div>
        <div id="bottom">
            <asp:ImageButton ID="btn_ok" runat="server" ImageUrl="~/Images/btn_login.gif" OnClick="btn_ok_Click" />
        </div>
    </div>
    </form>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p style="color: #FFFFFF; background-color: #0066CC;">
        Copyright ©&nbsp;2010-2012 dowann.com 道安咨询 版权所有<br />
        <a href="http://www.miibeian.gov.cn/" target="_blank" style="color: #33CCFF">沪ICP备10038019号-1</a>
    </p>
</body>
</html>
